<template>
  <el-container class="layout-container">
    <el-aside width="auto" class="glass glass-light">
      <layout-aside></layout-aside>
    </el-aside>
    <el-container>
      <el-header>
        <layout-header></layout-header>
      </el-header>
      <el-main>
        <layout-main></layout-main>
        <!-- 返回顶部按钮 -->
        <el-backtop target=".layout-container .el-main" :right="100" :bottom="100">
          <svg-icon name="backtop" size="25"></svg-icon>
        </el-backtop>
      </el-main>
      <el-footer class="flex justify-center items-center glass glass-light">
        <layout-footer></layout-footer>
      </el-footer>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import LayoutAside from "@/layouts/aside/layout-aside.vue";
import LayoutMain from "@/layouts/main/layout-main.vue";
import LayoutFooter from "@/layouts/footer/layout-footer.vue";
import LayoutHeader from "@/layouts/header/layout-header.vue";
</script>

<style scoped lang="scss">
.layout-container {
  height: 100%;

  .el-aside {
    //color: var(--el-text-color-primary);
    //background: var(--el-color-primary-light-8);
  }

  .el-header {
    display: flex;
    flex-direction: column;
    // 覆盖掉 el-header 的默认内边距样式
    padding: 0;
    height: auto;

    background-color: rgba(255, 255, 255, 0.5);
    //backdrop-filter: blur(30px);
    //-webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgb(128, 128, 128);
  }

  .el-main {
    padding: 0;
    //overflow: hidden;
    overflow-x: hidden;
    //transition: padding 0.5s ease-in-out;
  }

  .el-footer {
    height: auto; /* 重置高度 */
    //background-color: var(--el-color-primary-light-7);
    //color: var(--el-text-color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    // 并不是所有的 CSS 属性都可以使用 transition 来创建过渡效果，比如 display、opacity 等。
    // transition: height 0.5s ease-in-out;
  }
}
</style>
